<template>
  <div class="page">
    <div class="title">客户移交</div>
    <div class="stepContent">
      <VxStep :stepList="stepList" :current="current" />
    </div>
    <div class="content">
      <div class="form">
        <ui-form :label-position="labelPosition" label-width="150px">
          <ui-form-item label="移交客户经理编号：">
            <ui-input type="text" placeholder="请输入移交客户经理编号" v-model="form.id"> </ui-input>
          </ui-form-item>
          <ui-form-item label="移交客户经理名称：">
            <ui-input type="text" placeholder="请输入移交客户经理名称" v-model="form.name"> </ui-input>
          </ui-form-item>
          <ui-form-item label="移交原因：">
            <ui-input type="text" placeholder="请输入移交原因" v-model="form.reason"> </ui-input>
          </ui-form-item>
        </ui-form>
      </div>
    </div>
    <div class="footer">
      <div class="buttonBox">
        <ui-button class="default-btn" @click="back">返回</ui-button>
        <ui-button class="primary-btn" @click="submit">提交</ui-button>
      </div>
    </div>
  </div>
</template>

<script>
import VxStep from '@/components/vx-step';
export default {
  name: 'customTransfer-ent',
  components: {
    VxStep,
  },
  data() {
    return {
      labelPosition: 'right',
      stepList: ['客户移交录入', '客户移交确认', '客户移交结果'],
      current: 0,
      form: {},
    };
  },
  mounted() {
    console.log(this.$route.query.customData);
  },
  methods: {
    back() {
      this.$router.back();
    },
    submit() {
      this.$router.push({
        path: '/customManager/myCustom/customTransfer/customTransferConf',
        query: {
          customData: this.$route.query.customData,
          formData: this.form,
        },
      });
    },
  },
};
</script>


<style lang="scss" scoped>
.page {
  .title {
    font-size: 18px;
    color: #000;
    font-weight: bold;
  }
  .stepContent {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
  }
  .content {
    background: #fff;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 20px;
    margin-top: 20px;
    .form {
      margin-top: 50px;
    }
  }
  .footer {
    background: #fff;
    padding: 20px;

    .buttonBox {
      border-top: 1px solid #ccc;
      padding: 20px 10px 0 10px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
</style>